package cn.zz.veggie.web.types.dto.mgmt.user;

import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Positive;
import lombok.Getter;
import lombok.Setter;

/**
 * @author zhongq
 * @since 2024/7/14
 */

@Getter
@Setter
public class MgmtDelManSaveDto {
	@Positive
	private Integer id;
	@NotNull
	@Length(min = 2, max = 4)
	private String username;
	@NotNull
	@Pattern(regexp = "^1\\d{10}$")
	private String mobile;
}